package org.gd.hellojaxb.privat24.html;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author User
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "a")
public class HtmlLink extends HtmlElement {

    @XmlAttribute(name = "href")
    private String link;

    public HtmlLink() {
    }

    public HtmlLink(String link, String value) {
        this.link = link;
        this.setContent(value);
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Override
    public String getValue() {
        return super.getContent();
    }

    @Override
    public void setValue(String value) {
        super.setContent(value);
    }
}
